package spingmvcstudent.Dao;

import spingmvcstudent.pojo.User;

import java.util.List;

public interface UserDao {
    List<User> getAllUser();
    int addUser(User user);
    int deleteUser(Integer id);
    List<User> findByName(String username);
    List<User> findById(Integer id);
    int updateUser(User user);
    List<User> findByIdAandName(Integer id,String username);
    List<User> findByNameAndPassword(String username,String password);
}
